.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.upload-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.upload-btn {
    padding: 10px 20px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    background: #ffffff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.upload-btn i {
    font-size: 18px;
    color: #4CAF50;
}

.upload-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.upload-btn:hover i {
    color: white;
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.upload-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #f5f5f5;
    color: #666;
    border-color: #eaeaea;
}

.upload-btn:disabled i {
    color: #999;
}

.drop-zone {
    border: 2px dashed rgba(76, 175, 80, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.drop-zone:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.02);
}

.drop-zone.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.drop-zone i {
    font-size: 48px;
    color: #4CAF50;
    opacity: 0.8;
}

.drop-zone p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.preview-container {
    display: none;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-title i {
    color: #4CAF50;
    font-size: 20px;
}

.image-preview-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.base64-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.base64-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.base64-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.base64-output {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 12px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-family: "SF Mono", "Monaco", "Menlo", monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background: #ffffff;
    color: #333;
}

.base64-output:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.08);
}

/* 滚动条美化 */
.base64-output::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.base64-output::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.base64-output::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.2);
    border-radius: 3px;
}

.base64-output::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.3);
} 